package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Employee;
import cn.wolfcode.crm.query.QueryObject;
import cn.wolfcode.crm.util.PageResult;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface IEmployeeService {
    void insert(Employee record);

    void updateByPrimaryKey(Employee record);

    PageResult query(QueryObject qo);

    Employee getByUsername(String username);

    void changState(Long id);

    void resetPassword(String newPassword, Long id);

    List<Long> getRoleByEmployeeId(Long employeeId);

    HSSFWorkbook exportXls(QueryObject qo);

    void importXls(MultipartFile file) throws IOException;

    List<Employee> selectAll();

    List<Employee> getByTeacherRoleSn(String teacherRoleSn);

    List<Employee> getSaleMen();

    Employee selectByPrimaryKey(Long id);
}
